import * as types from './types'
export const mutations = {
  [types.SEARCH_LOADING] (state, {loading}) {
    state.searchLoading = loading
  },
  [types.SEARCH_TEXT] (state, {searchText}) {
    state.searchText = searchText
  },
  [types.USER_LIST] (state, {userList}) {
    state.userList = userList
  },
  [types.MOVIE_LIST] (state, {movieList}) {
    state.movieList = movieList
  },
  [types.MID] (state, {mid}) {
    state.mid = mid
  },
  [types.FAVOURITE_LIST] (state, {favouriteList}) {
    state.favouriteList = favouriteList
  },
  [types.TID] (state, {tid}) {
    state.tid = tid
  },
  [types.TMID] (state, {tmid}) {
    state.tmid = tmid
  },
  [types.HISTORY_LIST] (state, {historyList}) {
    state.historyList = historyList
  },
  [types.IMOVIE] (state, {imovie}) {
    state.imovie = imovie
  },
  [types.ISC] (state, {isc}) {
    state.isc = isc
  },
  [types.USER] (state, {user}) {
    state.user = user
  },
  [types.LIST_COUNT] (state, {listCount}) {
    state.listCount = listCount
  },
  [types.CPAGE] (state,{cpage}) {
    state.cpage = cpage
  }
}
